[

define lassoapp_exists(lassoapp::string)::boolean => web_node_root->subNode(#lassoapp) != void

define lassoapp_load(path::string) => {
  if(#path->endswith('.lassoapp'))
    lassoapp_installer->install(lassoapp_compiledsrc_appsource(file_forceRoot(#path)))
  else(#path->endswith('.zip'))
    lassoapp_installer->install(lassoapp_zipsrc_appsource(file_forceRoot(#path)))
  else(#path->endswith('/'))
    lassoapp_installer->install(lassoapp_dirsrc_appsource(file_forceRoot(#path)))
  else
    fail(-1,'Invalid path')
  /if
}


]